/*
 * @Description: 
 * @Date: 2020-12-21 15:12:59
 * @LastEditors: lother
 * @LastEditTime: 2021-01-06 20:30:43
 * @FilePath: \AccountOpening-H5\src\api\common.js
 */
import request from '@/utils/request'

/**
 * @description: 短信
 * @param {*} data 数据
 * @return {*}
 */
export function send(data) {
  return request({
    url: '/sms/send',
    method: 'post',
    data,
    msg:true
  })
}
  

export function flow(data) {
  return request({
    url: '/open/page/flow',
    method: 'get',
    params:data,
  })
}

// 上传
export function uploads(data) {
  return request({
    url: '/common/uploads',
    method: 'post',
    data,
  })
}

// 识别
export function analyse(data) {
  return request({
    url: '/common/analyse',
    method: 'post',
    data,
  })
}

/**
 * @description:  提交数据
 * @param {*} data
 * @return {*}
 */
export function submitList(data) {
  return request({
    url: '/open/page/submit',
    method: 'post',
    data:Object.assign({},data,{isModify: Number(localStorage.getItem('isModify')||'0')})
  })
}

/**
 * @description:  协议列表 
 * @param {*} data
 * @return {*}
 */
export function agreement(data) {
  return request({
    url: '/agreement',
    method: 'get',
    params:data,

  })
}

/**
 * @description:  协议详情
 * @param {*} id
 * @return {*}
 */
export function agreementId(id) {
  return request({
    url: '/agreement/'+id,
    method: 'get',

  })
}

/**
 * @description:  下载
 * @param {*}
 * @return {*}
 */
export function download() {
  return request({
    url: '/common/download',
    method: 'get',
  })
}

/**
 * @description: logo icon header文字
 * @param {*}
 * @return {*}
 */
export function about() {
  return request({
    url: '/common/about',
    method: 'get',
  })
}

/**
 * @description: ca视频文字
 * @param {*}
 * @return {*}
 */
export function videoList() {
  return request({
    url: '/open/check/video',
    method: 'get',
  })
}